package com.moon.config;

import com.moon.resolver.MyResolver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * @author ：xxx
 * @description：TODO
 * @date ：2024/04/11 16:10
 */
@Configuration
public class ArgumentResolverConfig implements WebMvcConfigurer {

    @Autowired
    private MyResolver myResolverConfig;

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(myResolverConfig);
    }
}
